/*
 * $Id: signal.c,v 1.8 2005-07-27 11:09:46 bacon Exp $
 */

#include <xp/bas/signal.h>
#include <xp/bas/errno.h>

/* TODO
#ifdef __linux
	#include <linux/unistd.h>
	static inline _syscall2 (int, kill, xp_pid_t, pid, int, sig);
#endif
*/

int xp_kill (xp_pid_t pid, int sig)
{
	return kill (pid, sig);
}

int xp_raise (int sig)
{
#ifdef _WIN32
	/* TODO: */
	return -1;
#else
	return xp_kill (xp_getpid(), sig);
#endif
}
